The functions of each routine are explained at the beginning their respective codes as comments.
For questions, please contact nicola.strenzke@med.uni-goettingen.de.